using Microsoft.AspNetCore.Mvc;

namespace NETCORE.WebApi.BaseService.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class CodeController : ControllerBase
    {

        public CodeController() { }

        [HttpGet]
        [Route("GetCodeStr")]
        public IActionResult GetCodeStr(string code) => Ok("code string data : " + code);

        [HttpGet]
        [Route("GetCodeJson")]
        public IActionResult GetCodeJson(string code, int orderNum) => Ok(new { data = "data json", code = code, orderNum = orderNum });



    }
}
